from main.练习.lianxi12.Base.Base import Base
from selenium.webdriver.common.by import By
from time import sleep
class Page(Base):
    def open_url_loc(self):
        self.open_url('https://www.jiuxian.com/')


    headerLogin_loc=(By.CLASS_NAME,'headerLogin')
    def headerLogin(self):
        self.click(self.headerLogin_loc)

    uname_loc=(By.NAME,'uname')
    def uname(self):
        self.send_keys(self.uname_loc,'13014405905')

    _pwd_loc=(By.NAME,'_pwd')
    def _pwd(self):
        self.send_keys(self._pwd_loc,'123456AAaa')

    save_loc=(By.ID,'save')
    def save(self):
        self.click(self.save_loc)

    bindSub_loc=(By.CLASS_NAME,'bindSub')
    def bindSub(self):
        self.click(self.bindSub_loc)

    def jiuxianwang_loc(self):
        self.open_url('https://www.jiuxian.com/')
        self.headerLogin()
        sleep(2)
        self.uname()
        self._pwd()
        sleep(10)
        self.save()
        self.bindSub()
